package com.onegroup.controller;

import com.onegroup.pojo.Project;
import com.onegroup.service.ProjectAcceptanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author:沈思涵
 * @Description:项目验收控制层
 * @History:
 */
@RestController
public class ProjectAcceptanceController {
    @Autowired
    private ProjectAcceptanceService projectAcceptanceService;
    @GetMapping("/ProjectAcceptanceService")
    public List<Project> ProjectAcceptanceService(int proId){
        System.out.println("qql");
        List<Project> projectByProjectId = projectAcceptanceService.getProjectByProjectId(proId);
        return projectByProjectId;
    }
}
